package com.example.springLearning.part14.config;

import com.example.springLearning.part14.util.TimeCostFilter;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class MyFilterConfig {

//    @Bean
//    public FilterRegistrationBean<TimeCostFilter> costFilter() {
//        FilterRegistrationBean<TimeCostFilter> filter = new FilterRegistrationBean<>();
//        filter.setName("timeCostFilter");
//        filter.setFilter(new TimeCostFilter());
//        filter.setOrder(-1);
//        return filter;
//    }
}
